{% if project %}
	<p>
        <ul>
        {% for todo in todo_set %}
		{% if not todo.completed %}
		<li><a href='todo/{{ todo.id}}/complete' class=small><img class=noborder src="/homebase/media/images/flag_red.png"></a> {{todo.priority }}: {{ todo.item }} 
		</li>
		{% endif %}
        {% endfor %}
        </ul>
	{% if start %}	
		<a href="?low=0&high={{range}}"><img class=noborder src="/homebase/media/images/arrow_undo.png"></a>
	{% endif %}
	{% if previous %}
		<a href="?low={{previous_low}}&high={{previous_high}}"> <img class=noborder src="/homebase/media/images/arrow_left.png"></a>
	{% endif %}
	{% if next %}
		<a href="?low={{next_low}}&high={{next_high}}"> <img class=noborder src="/homebase/media/images/arrow_right.png"> </a>
	{% endif %}
	{% if end %}
		<a href="?low={{end_low}}&high={{end_high}}"> <img class=noborder src="/homebase/media/images/arrow_redo.png"> </a>
	{% endif %}
	</p><br>Total to be completed: {{ end_high }}<br>
	<b>Add items</b><br>
	{% include 'projects/todo_add_form.html' %}

	<br><br><a href='todo/all/'>View all<a>

{% else %}
        <p>No projects are available.</p>
{% endif %} 
